package liuyuyang.feign;

import liuyuyang.domain.Classes;
import liuyuyang.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "classes-service", path = "/class")
public interface ClassesFeign {
    @GetMapping("/{id}")
    public Result<Classes> get(@PathVariable Integer id);
}
